using UnityEngine;
using System.Collections;

public class CubeMain : MonoBehaviour {

	public int WalkSpeed = 10;
	Vector3 velocity = new Vector3(1,0,0);
	
	// Update is called once per frame
	void Update () {
		transform.Translate(velocity*Time.deltaTime);
		aniSprite animation = GetComponent<aniSprite>();
		animation.anim(16,16,0,0,16,12);	
	}
}
